package com.java.base.exercise.designmode.proxy.cglibproxy;

import net.sf.cglib.proxy.Callback;
import net.sf.cglib.proxy.CallbackFilter;

import java.lang.reflect.Method;

/**
 * @Author RenPu
 * @Date 2024/2/18 19:30
 * @Version 1.0
 * @Description:
 **/
public class FilterImplement implements CallbackFilter, Callback {
    @Override
    public int accept(Method method) {
        if("recive".equals(method.getName())){
            return 0;
        }else {
            return 1;

        }

    }
}
